#include "MarsPrecompile.h"

#include "MarsMaterial.h"

Material::Material()
	: Object()
	, m_pVertexShader( NULL )
	, m_pPixelShader( NULL )
	, m_pDiffuseMap( NULL )
	, m_pDiffuseSS( NULL )
	, m_pBlendState( NULL )
	, m_fAmbientColor( 0.0f, 0.0f, 0.0f, 0.0f )
	, m_fDiffuseColor( 0.0f, 0.0f, 0.0f, 0.0f )
	, m_fSpecularColor( 0.0f, 0.0f, 0.0f, 0.0f )
	, m_fShininess( 0.0f )
{

}

void Material::SetDiffuseMap( Texture* pDiffuseMap, SamplerState* pDiffuseSS )
{
	m_pDiffuseMap = pDiffuseMap;
	m_pDiffuseSS = pDiffuseSS;
}

void Material::SetBlendState( BlendState* pBlendState )
{
	m_pBlendState = pBlendState;
}

void Material::SetRasterizerState( RasterizerState* pRasterizerState )
{
	m_pRasterizerState = pRasterizerState;
}

